#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<limits.h>

int main(void)
{
	char ans[7][30]={"Canteen","ACM Team","Practical training building","Mengxi Lake","Academic Building","Library","School Bus"};
	char words[7][20]={"sohungry","hard","amazing","sobeautiful","tired","study","toofast"};
	int j=0;
	char temp[20],ch;
	j=0;
	while((ch=getchar())!=EOF)
	{
		if(ch=='#')
		{
			temp[j]='\0';
			for(int i=0;i<7;i++)
			{
				if(!strcmp(temp,words[i]))
				{
						printf("%s",ans[i]);
				}
			}
			printf("#");
			j=0;
		}
		else if(ch=='\n')
		{
			temp[j]='\0';
			for(int i=0;i<7;i++)
			{
				if(!strcmp(temp,words[i]))
				{
					printf("%s",ans[i]);
				}
			}
			printf("\n");
			j=0;
			continue;
		}
		else
		{
			temp[j]=ch;
			j++;
		}
	}
	
	
	return 0;
}
